package org.apache.lucene.ocean;

import java.util.concurrent.Callable;

public abstract class Transaction implements Callable<CommitResult> {
  public abstract boolean go();
  
  //abstract void addDocsAdded(int value);
  
  public abstract void ready(Index index);
  
  public abstract Long getId();
  
  public abstract void failed(Index index, Throwable throwable);
  
  public abstract Snapshot getPreviousSnapshot();
}
